import axios from 'axios';

export function getDictList(param?: any) {
  return axios.post('/dict', param);
}

export function queryMenuList(param?: any) {
  return axios.post('/admin/menu', param);
}

export function createMenu(param?: any) {
  return axios.post('/admin/menu/create', param);
}

export function updateMenu(param?: any) {
  return axios.post('/admin/menu/update', param);
}

export function deleteMenu(param: { id?: number }) {
  return axios.post('/admin/menu/delete', param);
}

export function queryAreaList(param?: any) {
  return axios.post('/admin/area', param);
}

export function createArea(param?: any) {
  return axios.post('/admin/area/create', param);
}

export function updateArea(param?: any) {
  return axios.post('/admin/area/update', param);
}

export function deleteArea(param: { id?: number }) {
  return axios.post('/admin/area/delete', param);
}

export function querySettingList(param?: any) {
  return axios.post('/admin/setting', param);
}

export function updateSettings(param?: any) {
  return axios.post('/admin/setting/updateAll', param);
}
